
<div class="grid_6 _75">
						<div class="box">
							<div class="header">
								<img width="16" height="16" alt="" src="img/icons/packs/fugue/16x16/grid.png">
								<h3>Tìm kiếm cơ bản</h3>
								<span></span>
							</div>
							<div class="content">
								<form id="formsearch" name="formsearch" action="" class="_50">
									
									<div class="_50">
										<p>
											<label for="50">
												Tên tài khoản
											</label>
											<input type="text"  name="nsearch" id="nsearch"/>
										</p>
									</div>
									<div class="_50">
										<p>
											<label for="50">
												&nbsp;    
											</label>
											<input type="submit" class="text" id="50" value="Tìm kiếm" />
									</div>
									
									
								</form>
							</div> <!-- End of .content -->
						</div> <!-- End of .box -->
</div>
<div class="clearfix"></div>


<script type="text/javascript">
$(document).ready(function(){
<?php
echo $js_grid;
?>


$('#formsearch').submit(function(){
   var dt = $('#formsearch').serializeArray();
    var qr = $('#nsearch').val();
	$("#flex1").flexOptions({params: dt});
	$('#flex1').flexOptions({url: "<?php echo base_url(); ?>index.php/member/ajax/search"});
	$('#flex1').flexOptions({qtype:"username"});
	$('#flex1').flexOptions({query: qr});
	$('#flex1').flexOptions({newp: 1}).flexReload();
	return false;
    
});


});


function test(com,grid)
{
    if (com=='Select All')
    {
		$('.bDiv tbody tr',grid).addClass('trSelected');
    }
    
    if (com=='DeSelect All')
    {
		$('.bDiv tbody tr',grid).removeClass('trSelected');
    }
    
    if (com=='Delete')
        {
           if($('.trSelected',grid).length>0){
			   if(confirm('Delete ' + $('.trSelected',grid).length + ' items?')){
		            var items = $('.trSelected',grid);
		            var itemlist ='';
		        	for(i=0;i<items.length;i++){
						itemlist+= items[i].id.substr(3)+",";
					}
					$.ajax({
					   type: "POST",
					   url: "<?php site_url("/ajax/deletec");?>",
					   data: "items="+itemlist,
					   success: function(data){
					   	$('#flex1').flexReload();
					  	alert(data);
					   }
					});
				}
			} else {
				return false;
			} 
        }          
} 


</script>

<div class="content">

<table id="flex1" style="display:none"></table>
</div>